layui.use('form', function() {
	var form = layui.form;
	getAllListStudent();

	function getAllListStudent() {
		$.ajax({
			url: 'http://localhost:8080/springend-sys/getAllListStudent',
			type: "post",
			data: {
				sid: sessionStorage.getItem("sid")
			},
			dataType: "json",
			success: function(result) {
				// console.log(result);
				form.val('formone', {
					"sno": result.data.list[0].sno,
					"sname":result.data.list[0].sname,
					"rid":result.data.list[0].rid,
					"cradid":result.data.list[0].cradid,
					"cname":result.data.list[0].cname,
					"deptname":result.data.list[0].deptname,
					"lock":result.data.list[0].lock,
					"sex":result.data.list[0].sex,
					"age":result.data.list[0].age,
					"email":result.data.list[0].email,
					"phone":result.data.list[0].phone,
					"birthday":result.data.list[0].birthday,
					"natives":result.data.list[0].natives,
					"seniorhigh":result.data.list[0].seniorhigh,
					"createtime":result.data.list[0].createtime,
					"overtime":result.data.list[0].overtime,
				});
			}
		})

	}
})
